package com.hs.security.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author 郭敖
 * @since 2023-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TbUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String email;

    private String mobile;

    private String img;

    private String token;
    /**
     * 加密盐
     */
    private String salt;

    @TableLogic
    private Integer deleted;
    /**
     * 用户所拥有的权限的id的集合
     */
    @TableField(exist = false)
    private List<Integer> roleIds;

}
